#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>

#include <stdio.h>

int main()
{
    int i=0;
    double arr[5] = { 0.0 };

    while (i < 5)
    {
        int j = 0;
        double sum = 0;
        while (j < 5)
        {
            scanf("%lf", &arr[j]);
            sum += arr[j];
            j++;
        }

        j = 0;
        while (j < 5)
        {
            printf("%.1lf ", arr[j]);
            j++;
        }
        printf("%.1lf\n", sum);
        i++;
    }
    return 0;
}